package cn.lxh.remote.api;

import cn.lxh.constants.Constants;
import cn.lxh.remote.fallback.BigdataFeignApiFallbackFactory;
import cn.lxh.remote.pojo.bo.DriverPointBo;
import cn.lxh.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author lxh Create Time: 2023/12/23 17:03
 * BigdataFeignApi接口
 */
@FeignClient(value = Constants.Remote.SERVICE_BIGDATA, fallbackFactory = BigdataFeignApiFallbackFactory.class)
public interface BigdataFeignApi {

    /**
     * 查询司机的行驶坐标
     * @return
     */
    @PostMapping("/remote/bigdata/driverPointList/{orderNo}")
    JSONResult<List<DriverPointBo>> driverPointList(@PathVariable String orderNo);

}
